module majiang.Views {
    /**
     * hupaiBtn 
     */
    export class HupaiBtn extends Mix.Views.Base.Button {
        //data
        public isCanHu:boolean;

        constructor(parameters) {
            super();

            this.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onTapHupai,this);
        }

        private onTapHupai(){
            if(this.isCanHu){
                majiang.Controllers.Play.view.hupai();
            }
        }
    }
}